package drds.data_propagate.parse;

import drds.data_propagate.common.LifeCycle;
import drds.data_propagate.parse.exception.ParseException;
import drds.propagate.protocol.Entry;

/**
 * 解析binlog的接口
 *
 * @author: yuanzu Date: 12-9-20 Time: 下午8:46
 */
public interface BinlogParser<T> extends LifeCycle {

    Entry parse(T event, boolean isSeek) throws ParseException;

    void reset();
}
